﻿@model RotaractProjectCalendar.Models.Club

@{
    ViewBag.Title = "Szczegóły";
}

<h2>Szczegóły</h2>

<div>
    <h4>Klub</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.ClubTitle)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.ClubTitle)
        </dd>

        <dd>
            <img src="@Url.Content(Model.Logo)" class="img-circle img-responsive" alt="Project photo" width="300" />
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.FbProfileAddress)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.FbProfileAddress)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.WwwWebsiteAddress)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.WwwWebsiteAddress)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.ClubEmailAddress)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.ClubEmailAddress)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Projects)
        </dt>

        <dd>
            <table class="table">
                <tr>
                    <td>
                        Organizowane projekty
                    </td>
                    <td>
                        Start date &amp; time
                    </td>
                    @foreach(var item in Model.Projects)
                    {
                    <tr>
                        <td>
                            @Html.DisplayFor(modelItem => item.ProjectTitle)
                        </td>
                        <td>
                            @Html.DisplayFor(modelItem => item.StartDateTime)
                        </td>
                    </tr>
                    }
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
<p>
    @Html.ActionLink("Powrót", "Index")
</p>